Forgot to end the file stream, it was causing 'jogging' commands to trigger file complete events.