Removed experimental debug console.
Added in shutdown callbacks to main application code.