implement shutdown method via command queue