In case a DB Lock can't be obtained, e.g. because the database is in maintenance, the dblock.go utility can cause the process to exit. The process should not exit, but rather obtaining the lock should be retried.
See here for further details: https://github.com/cloudfoundry/app-autoscaler/blob/master/src/autoscaler/sync/dblock.go#L68