Fixed io Input, Output error handling