Home and dry
To have successfully completed something is a British expression that dates from the late 19th century, thought to be derived from completing military exercises in wet weather. See also Done and dusted.