Move TaskStore eventHander into non-anonymous function