Expose reconnect function

Breaking up my previous pull request to expose the reconnect function for extensions.