Fixes kettari/authgoogle#18 - Exeption handling added (Logout problems)

Pick one from two pull requests which you like.