Fixed a crash bug in Esper processing thread