Catch only standard error exceptions.

This will make the demultiplexer only catch StandardError exceptions rather than all exceptions, so that exceptions like SystemExit, NoMemoryError and ScriptError won't be handled by the error handler.