Added close option to jmenubar