Fixed hang errors with Windows end of lines