You will need to check the output from your speed controller to see if it is still outputting voltage when it is meant to be stopped.
There may also be stop/start inputs on your speed controller/drive which you need to wire up correctly, without knowing the specs of that I can not say, however it is normal for most drives to have a run input of some sort.
Hood