Finish app withdeprecated method (showDialog)