added portalExec_end function for cleanup
(but not exactly certain how to turn off interrupts...)
added 3 types of event synchronization for testing with echo.

resulting timings are still quite unstable.