Code robustness

BaseAmqp __destruct did not check $conn before calling some method on it.