Add stopsignal support