implement the onDestroy() method of MobileMemoActivity; it calls the
exit() method of MessagingService to release the server socket.