Same as above, only IOException should be needed.