Add terminate_exception. Fix CloudI event handling.  Add timeout_terminate and timeout_initialize.