Added ExceptionHandler abstraction to receive exception thrown during publication.
Cleanup.