Fixed server crashes caused by libevent timer