Bugfix, close new socket when it can not connect to server during detecting routing.
Make pressing two times of back key within two seconds to exit program.
Create socket to communicate with server, and send motion event data throw this new socket.