Fix return type for executing a handler