Add close handler for property dialog.