Add a feature to terminate a resident action when it isn't completed within a specified timeout.