Basic circuit breaker in Ruby to prevent long running external calls from blocking an application