reset error status of file when reopenning
don't let new tasks to be scheduled while reconnecting