Fixed server stop on Linux.