Perform a build step or a post-build action as a timeout action.
This never ensure all build steps and post-build actions works correct.
Especially, build steps that works on slave nodes (Execute shell, Execute Windows batch command, and so on) always fail.