RE-ADDED: bb restart which will signal the main process to restart but shutting down cleanly and os.execl()
ADDED: Some checks for sys.stdout.isatty() which fixed some of the odd logging issues (double-logging)