Wait for draining the queue before shutdown
drainAndShutdown returns list of notifications who couldn't be sent
Bad printlns
Merge remote-tracking branch 'origin/drain_before_shutdown'