Handles authentication failure. Fixes #7