Fix LEAVE on server & make client (app) close on LEAVE