In general this does not work because windows has different error codes. This code shouldn't be running at all on linux, right?