If there as trace running it takes a couple seconds to exit.
I understand that this delay is good when the user clicks "stop", but not required when the user just wants to quit.
When the users clicks on "close" there is nothing to wait for, the app should just exit.