Fix backup to run when server stops