Fix server stop event