Fix exception on timeout