Disconnects and g-code line number

Carbide Motion should do this and automatically manage a re-start:

If you have trouble with this, let us know and we will look into it with you.