add shut down scheme
check whether got unreplied messages