Moved exit_with_error() and exit_with_result() into Session as static functions.