slaves close connection after master quits