add an option for nc to make sure socket will terminate after the filename is transfered to the server