Crash prevention best practices