If the previous callback is still running - kill it Also it will fix a problem of zombie processes when executing callbacks from the main thread.