Functionality of closing shell on I/O error implemented.