Added dispose behaviour to ApiClient and WebSocket in net35