Avoid crash on connection failures.
Override username, password with the configuration.
Add reconnect actions.