The server can return an unexpected answer like 'ssl required'. We catch those possible cast errors and abort the operation.