ALWAYS make file edits while in port; never at sea.
For maximum safety, finish whatever patrol you are on and return to port first. Close and exit SH3 before editing the files. Then restart SH3 and resume your career. The changes you made will take effect at startup.