Only open browser once we've connected successfully.
Reload hooks. Fixes #12.