ksh/sh help with exiting from SQL session