Adding back in logging, make sure if there's a problem with the
connection to destroy it so there's no leaks.