Add exception handling in LoggedIn routine + add some more logging