add a convenient way to shutdown everything
more comments