Add exception handling when not authorized.