fixed a main loop hang in AbeServer