fix for polling if the mainThreadJobListener is still running