call session.close in RequestHandler.on_finish