fix Menu exit bug
add JFrame close listener