Documentation for on_exception and on_connection_error.
Managed acking flag, and very careful exception handling.