Fix a memory leak.
Add a method for probing connections.