Simple circuit breaker wrapper for functions returning Promises. No dependencies, configurable grace period, threshold and error message.