The exception handling code inspects server state, which could be destroyed before the handle_exception() task runs since it runs after exiting the gate. Move the exception handling inside the gate and avoid scheduling another accept if the server has been stopped. Signed-off-by: Duarte Nunes <duarte@scylladb.com> Message-Id: <20171116122921.21273-1-duarte@scylladb.com>