[FIX] server: fixed reconnect logic bugs

I believe this will fix the client and blobvault issues with maintaining a long term connection.