cleanup unused adapter code. hide progress bar when error