Local server shutdown management.
Fix some terminal commands.