added a little more error checking the stanza handler, and stop calling conn.end() because it doesn't work