fixed style on windows
fixed mistake
fixed exit sequence on windows