the script should have a & after the xv command to detach xv from teh calling process other wise at stop, xv returns probably an exit(1) which exits acedb or something like thsi