Asterisk should not operate if manager unavailable


I developed a call manager which manipulates asterisk depending on my business logic. I am about to deploy the manager to my productive server and I am afraid some unpredicted bug in my newly developed manager might cause it to crash or malfunction.
Is there a possibility to configure asterisk in such a way that it operates only in the “presence” of a certian manager? i.e. If manager is not logged in asterisk should not handle any new channels or client requests (maybe even run down itself gracefully)?

Thanks in advance for your feedback,