This try catch is no longer needed since logout() doesn't throw anything.