You can spray them when you see them.
There are various solutions on the market or you do what as already been suggested and squish them between your fingers.
You can collect them and put them on the bird table too,the birds will love you forever......but not after you sprayed them obviously!