Implemented onClose method in Touch class