Catch access denied errors