Add Windows error code and tidy formatting for system errors.