fix to stop statements on esper by SIGINT and SIGTERM