[fix] shutdown sequence