Named two anonymous functions: send_event & handle_event in order to aid in debugging and profiling of the core framework.