Catch I/O errors in readline setup.