Fix running at too low a priority when restarting.
No need for the extra extra thread here.
Call the right deploy method! (class permissions issue, lack of @Override made it unclear)
Delete backups only after successfully restarting.