Fixd crash when quit() was called before evaluate() finished