commandline server: cleanup process signal logic