I/O error handling in imports