fix keep alive loop code to bail out if
fails to bind to socket as well as quick cores.