Detect when the event loop is finished in a Worker - Deno