Wrap handlers using eventsource to handler() function.