The connection itself is fine and should return SLURM_SUCCESS. The return_code needs to be handled separately elsewhere.