PingPong example now working. Need to explicitly close the socket
connection before reloading else we get resource busy error