Fix crashrestart output, refactor command listener, remove crashrestart debug, refactor autorestar command