preserve windows error numbers as well