Add deinit call
Merge pull request #483 from matthiasbeyer/fix-client_get_todo

Add deinit call