Add stop server functionality