The dirty secret about night flying is that if there is a cloud on a moonless night, even if unforecast, on your route, you will most likely discover it by finding yourself inside it.
If the temperature is below freezing, you want to exit before ice adds to the fun. If terrain allows, a descent to a lower safe height may get you clear. Otherwise it may be time for a 180.