Improve logs on OSError