Remove call to flush in logout handler