implement method for close error prompt dialog for Android