regaining control after remotely calling matlab

hi,
i have written a tcsh script that calls matlab from a remote computer:

matlab -nodisplay -nojvm -r "txt2avw('$roi'); exit"

but when the program is finished calling/using matlab, i can't seem to get my script back because immediately following the line above, i've written:

echo "Moving onto the orientation swapping..."

and this is not being processed. does anyone out there call matlab remotely from their scripts, and if so, do you know how to get matlab to relinquish control back to the host?

any help would be greatly appreciated. thanks in advance!