Fixed attempts to listen on failed connection