Removed exception throw for IO errors, ouputs straight to cerr instead.