shiro + error handling.