Current implementation of the release() method have a bug; it does not clear pending messages/callbacks queued to the applicationHandler.