Remove unnecessary IOExceptions thrown