<div dir="ltr">I'm a newbie on RabbitMQ. &nbsp;I'm writing a java service to consume a message from the queue. &nbsp;Everything is working as designed but I cannot seem to code "channel.close() or conn.close()" in the catch &nbsp;or finally block. &nbsp;Java is complaining about that the "cannot find symbol".<div><br></div><div><div>symbol &nbsp;: variable channel</div><div>location: class RouteToMercury.javaServices</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>channel.close();</div></div><div><br></div><div>Can I close the connection and channel if an exception occur?</div><div><br></div><div>Thanks for your responses.</div></div>