Added timestamp to all messages written to console.
Changed to one single try-except.

Still has random IOErrors after a few hours of operation.  Resolves itself within seconds.