Clean up dependency.
SC_UNAUTHORIZED error handling fixed.