Added ability to switch away from plugin without it killing the
connection.