Handling pretty exception on windows