This is an annoying behaviour, when quitting Photoshop it would unexpectedly quit (sounds odd, I know, but I prefer "expected" quits!) While this is annoying, there is no harm done if all documents were saved and closed first. If the following Plug-in is removed, the unexpectedly quit problem does not happen.
Note 1: This means open the "Applications" folder, then the "Adobe Photoshop CS5" folder, then the "Plug-ins" folder, then the "Extensions" folder, then find the file "ScriptingSupport.plugin", and delete it.
Note 2: If you require scripting support do not delete this, but you will have to put up with the unexpected quits. If you are unsure, move the file to another location, instead of deleting it, then you can put it back if required.
I usually write a blog post about once a week. The latest post can be viewed here: Learning from Failure: I think there is a place for parties with views I find insane. (posted 2024-11-28 at 12:41:49). I do podcasts too!. You can listen to my latest podcast, here: OJB's Podcast 2024-08-22 Stirring Up Trouble: Let's just get every view out there and fairly debate them..