sending file...
bringing back thread, closing socket