command: add timeout option, refs #15