ksh script doesn't exit in Jenkins

I have a ksh script which runs on the commandline of Jenkins.
Script only has commands and few echo statements.I have added set -e as well.
But the issue is that , script completes but donot exits on Jenkins commandline.
whereas when I run it on unix, it executes perfectly and exits.I need to execute the script on Jenkins.Please help me

The various UNIX shells are designed to run a series of commands until they complete and then exit.

I'm not familiar with Jenkins or Hudson, but from the Wiki page for Jenkins it sounds like Jenkins is designed to run a script repeatedly assuming that things might change between iterations that will trigger that script to kick off related activities.

Of course, without actually seeing your script, we can make a lot of wild assumptions that will be totally unrelated to your problem...