Added libevent's event_base_loopbreak in sig_handler method to allow memcached to properly shutdown