Revert "Disable autorestart feature"

This reverts commit 3d2ae9b8061327a10f84f4f55412325f1140b2ce.