Teleport trap

To. #5745
Previous request # 5821 removed because of my mistakes in working with
git.