Add timeout in wait_for_open function.