Handle all exceptions on shutdown
Merge remote-tracking branch 'origin/master'