Added server shutdown to test