[doc] Adding optional callback on `spark.leaveAll`