added script for close alert

Added scripts for alert close action on password destroy.