onappcmd handler doesn't return