Running a successful startup means more rainy days than bright, clear skies. Here’s how to not end up all wet.