Moved exception handler to stderr.