Modified unblocking functions sequence for smooth shutdown