Close connection.
Connexion parameters serialized as JSON.
Check for malformed JSON.
Check for connection error.