adding sleep after stop, to prevent 'port already in use' at startup time when a jmx port is defined