Sleep for 10 seconds after script run/failure to allow some time for Travis to capture the complete log. It was used as a workaround also at travis-ci/travis-ci#6018.
Also attempted another workaround (using fcntl) from travis-ci/travis-ci#8973 but it didn't work as expected.
Fixes: #4223 (closed)