Switch on 'Allow partial commits' to have the index periodically commited/saved. If the connection is lost only indexing changes since the last commit will be lost.

To re-start the indexing process use the 'Update Index' option to only index files not modified or not already in the index.