cleanup of logout