now uses when-monitor to catch unhandled rejections