Mass loss in semi-detached binaries