For a geoemtry optimization is always very convenient (99% of the times) to specify the trajectory_filename parameter as described in the reference manual:
http://www.quantumwise.com/documents/manuals/latest/ReferenceManual/index.html/ref.optimizegeometry.html
In this way, you can restart from the last geometry step by reading the last configuration with something like:
trajectory=nlread("filename.nc", Trjaectory)[-1]
last_configuration=trajectory.lastImage()
did you specified this file?
by the way, we are working on a new tutorial about geometry optimization right now, we will be sure to include more info about the restarting issue.