you may not use the -p option in the case you will wait for an incoming connect request.
(see man page of nc) Hostname and Port are the last two arguments of the command line.
May be it connects to the own port and after some hours there is some resource missing??