Remove WindowsError in logger.py

Change WindowsError in OSError in logger.py to make it linux compatible