changed clearAllData() to not endSession, and add a force option to endSession