IO Exception handling in the Parser monad