Fix EventMachine issue in background workers