try to close redis connection before spawning gnatsd

also simplify uri handling