Basic exception handling.