Removed an IO exception and put a simple error message instead.
Throwing Exceptions is costly.