fixed window leak due to dialog not being dismissed when finishing the activity