refactor startup function
add -ign_exit option
don't print FETCH pseudo SQL statements before (in proc mode)