closing server frame to exit application