fixed exception in attach detector with shmem transport