Add primitive exception handling.