Fix to keep waiting for toolkit subprocess when the process is receiving signals.