hexwindow: Hook up "Close" menu command
nandseewindow: Add "Quit" menu command
hexwindow: Fix cleanup on window close

The hexwindow now calls back when it's going to close, allowing us to
delete the hexwindow object.