BUG FIX: Exception while logout procedure