Python daemon quitting unexpectedly
<p>I wrote a daemon in Python that sends emails. To collect the email ids the daemon opens the MySQL connection. But the daemon was quitting unexpectedly by throwing an exception.</p>

<pre><code>[Errno 104] Connection reset by peer
</code></pre>
