Added the close functionality to reflex_smart