flush and close after writing time to socket

http://doc.akka.io/docs/akka/2.2.3/scala/io-tcp.html#closing-connections