Add onClose method into video handler.