#181 #3322 removed failing check from detachAgentListener