Implement timeout
Merge pull request #44 from azyobuzin/feature/timeout

Implement timeout