Like you I can't find any reference for that code. If you run the script steps manually, does it stop the FMS server? Can you post the script?
Stopping the server should close the files properly. When you stop the server in the GUI, you just click the stop button, you don't have to close the files first.
Yup, it stops the server, im just trying to work out if there's actually an error along the way
Script was as follows
fmsadmin stop server -f -m "Database Server is being Shutdown" -y -u xxxxx -p xxxxx
What OS and what program runs the script? I suspect that the code is a return from the program and not FMS.