manager.py Class: AMIProtocol
connectionLost in AMIProtocol sends tw_error.ConnectionDone("...") on line 161
This is received by nested onEvent within AMIProtocol.collectDeferred on line 279 and performs a check of if event.get('response')=='Error'
However ConnectionDone doesnt have a 'get' method.
As a result connectionLost throws the exception of:
AMI:ERROR manager:165: Failure during connectionLost for callable <function onEvent at 0x9a038ec>: 'ConnectionDone' object has no attribute 'get'