fix (timeout)

test if the instance is nil before check timeou