Backup system api server: Better shutdown method