add some more features to the spawner class, like a restart on crash!