Better logout, can be used everywhere