Fixed uninitialized exitcode
Added signal "SIGQUIT", "SIGTERM" made the same as "SIGINT"