Added disconnect to REST requests