shutdown server on exceptions in IO loop