Remove the use of exceptions.