Fixed error on server stop