Logout method

Requested by @Cayorion.