Register live events on close button.