Honoring timeout for sync operations.

This closes #1242.
Could you fix the typo?