Fix bugs in runner

fix gen script amount logging
fix signal handler interface problem
fix type translation