Fix double-connection with non-persistent connections. Thanks Daniel! Fixes  #13