How to avoid startup failure