Refactorings.
Changed 'replay' concept to 'live message'.
Added circuit breaker code to prevent infinite loop on shutdown.