Remove WindowsError in logger.py

Change WindowsError in OSError in order to make it compatible on linux