Error handling for essential commands