didn't work just disconnect on every exit of the api