Since I repurpose the X button the only way to close is to beat the game or use task manager. I had some other ideas that I didn't have time to implement like resizable windows, DataGridViews, and enemies in their own windows that would chase your mouse cursor around.