Trying to try catch some errors occuring on windows somewhere