Windows Hotfixes

This PR fixes some recently introduced Windows bugs.
We should return an error, and let the user know it doesnt work.