Handle invalid permissions error

And really any error.