Remove script listeners on finish