[added] support for automatic restart on crash or deadlock