Release stuff if initialization fails half way through.