Fixed a small threading issue with our simulation worker (#112).