Current event api request is not always closed when switching the JobScheduler.
Current event api request should be closed when switching the JobScheduler.