fixed one constructor, removed another
now catching all exceptions arising from task.restartItself, so if it fails to restart, it can print out, what happened