server_error_t/client_error_t
cleanup the session