add global timeout for waitFor commands. Fixes #129