Add subprocess join to avoid defunct processes