<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_unexpected_error(e):
 # pragma: no cover """Catch-all error handler Unexpected errors will be handled by this function. """

    sys.stderr.write('Unexpected error: {} ({})\n'.format(
        str(e), e.__class__.__name__))
    sys.stderr.write('See file slam_error.log for additional details.\n')
    sys.exit(1)