Replace the print by logger.method(), add exit method
Replace the print by logger.method(), add exit method

the core module now can gives "console" option to show the logs into
user's console. exiting from core is now handled by exit() method instead
of sys.exit().

dotamin/migmig