Enable throw in _record_error
Fix Windows