Make sure the FileStream is correctly reset in case of error.

Also renamed StandardLogger into DefaultLogger.
Nada