Wrapped the task/command handler in a task factory for easy async