hide spinner when error returned