Revert "add method for server exit"

This reverts commit 787e6036a1d7f2af1e9e44d99f3d779c40cef8aa.