Fixed problem with timeouts handling.