handle releasing recognizer better