Removed print statements from io error clauses