run the command via GNU Screen. When your session drops just connect back and get back to the initial screen . There are a fair number of tutorials about using it.. Hope it helps.

Regards,
Gaurav

edit: woops soft2050 beat me