Rollbacks DB transaction and closes the session.