subprocess: Break lock if it has expired
subprocess: Listen to SIGTERM signal
subprocess: Fix workers termination