Make sure any exceptions in scheduler thread are logged