diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -221,9 +221,15 @@ module.exports = (function () {
         teardown: function (connectionName, cb) {
             var closeConnection = function (connectionName) {
                 var connection = me.connections[connectionName];
-                if (connection.conn) connection.conn.close(function (err) {
-                    if (err) console.error(err);
-                });
+                if(connection)
+				    if (connection.conn && typeof connection.conn.close == 'function') 
+				        connection.conn.close(function (err) {
+                            if (err) console.error(err);
+                        });
+				    else
+				        connection.close(function (err) {
+                            if (err) console.error(err);
+                        });
 
                 delete me.connections[connectionName];
             };
tearDown method verifies whether object instance has close method before attemptint to invoke connection.close() .Resolved Issue: <URL>