Remove IOExceptions which will not be thrown