Exception and error handling.