Imperfect accretion: ejecting matter in X-ray binaries