Ensure Quick Close Task listener is only applied to tasks