Previously, an unhandled promise rejection in the background worker would crash the process. This way we log it and don't crash.