swipebox exit function