Check for IO errors after running a command