added stopping of server