Error handling, safety precautions