Turning the api off and on again