Remove unused assignment
Fix scan warnings
reconnect can be called with an unused connection handle.  Fixes #507