Die is basically:
function die( $str = '' ) {
echo $str;
exit;
}
and as such is of little if exit isn't working.
More information on the problem would be helpful... though I would guess that everything is working normally just not as dado there is expecting.
What does your function do?