Handle timeout and sends a request

Fixes #4
Fixes #8