Fix filemonitor to try to restart transfer if an error occurs.