Add exit status to error_and_exit method.