quiet logs if terminating on a closed loop
@@ -135,6 +135,8 @@ class Nanny(Server):
except CommClosedError:
pass
except BaseException as e:
+ if (not self.loop._closing and self.loop._running and not
+ self.loop._stopped):
logger.exception(e)
allowed_errors = (gen.TimeoutError, CommClosedError, EnvironmentError, RPCClosed)
