Write uncaught errors into response stream, if it's possible.

Terminate worker after some urecoverable errors on invocation:
 - ImportError
 - SyntaxError