error: better handle uncaught worker exceptions