move signal termination error into the lib
helper for loading commands from json