Catch IOError not OSError