Properly handle server announcements.
Add some reconnection support.