Remember to unregister windows when closed