Protect against multiple running instances.