Added handling of request timeouts