Increase wait time for query running and throw exceptions instead of printing