add finish root method,when only have one activity.