Fixed duplicate onClose bug.