Improve error handling and add server state checks for start, stop, and RCON operations
- Added
set -e
to enforce better error handling throughout the script and Adjusted a few functions - Updated
start_server
,stop_server
, andsend_rcon_command
functions to check if the instance is already running before proceeding. - Adjusted
start_all_instances
andstop_all_instances
to incorporate the running state check, skipping instances that are already in the desired state.