JBTM-1906. Improve CI timeout handling