Once they enter the bottle through the mouth, they'll be unable to escape and will eventually drown in the soapy water below.
you can use it to make an excellent fruit fly trap. Both beverages have a sweet, fermented aroma that fruit flies find irresistible. Pour a small amount of wine or beer into the bottle or jar ...