To prevent this, set the folder to read-and-write permissions.
This issue will be resolved when you upgrade to Logic 7.1. If the folder containing the GarageBand song is read only, Logic will display a dialog box instead of quitting. You will still need to to set the folder to read and write before opening the song in Logic.