Graceful error handling (script errors, fatal errors & exceptions)