signal handling
fix signal handling
define $RETRY_INTERVAL. do not random sleeping