support passing timeout
Merge pull request #2 from ranjib/support_timeout

Support timeout in execute method