Windows specific error handling