More robust secret saving: run & wait on a background subshell.
Fixing some secret shell init.