Here you can see the non-violent method of silk rearing without killing the silkworm.
The moth can fly out through its self created hole.