added search timeout
fixed exceptions handling