Fix renderThreadPool maybe not shutdown.

Signed-off-by: yushijinhun <yushijinhun@gmail.com>