Fixed error if HMMM simulator exits