added the --daemonize option to command-line of trema-switch
add sigterm handler