Hi,
Are you running this through a USB connection to the console (or a USB serial adapter)? I had a similar problem and found that the USB port had power saving enabled so after a few days it went to sleep causing the disconnection.
Hope this helps point you in the right direction.