Better handling of config init
Add primitives for exclusive locking
Handle SIGTERM on exec gracefully