The server may indeed stop responding on send ing the email, that is not something that can be fixed as there are too many possibilities for why that may happen, most of which are server related issues, not script related.
when it stops responding, you should be able to stop the mailing and restart it and have it start at the emails that have not yet been sent to.