Added timeout in order to prevent the thread continue runing after a test
failure.