Add a mechanism to terminate an command action when it doesn't quit within a specified timeout.