added interface for stopping the emulation