rollback session when request errors out