improved error handling on destroyed objects (since static access should still be possible)
Authored by: florianlink 2009-06-23
Parent: [r113]
Child: [r115]