Adds example for closing connections