Clean up connection/registration window.