set timeout
Merge pull request #20 from wyukawa/feature-timeout

add timeout logic