Fix castd failed to close receiver apps

Signed-off-by: Bao Zhen <bz@infthink.com>