Moved DO creation from client app to repository. Disconnect before exiting. Cleanup.