Do not use anonymous inner class, holds reference to application that isn't detached