more debugging when stopping