adding sys.exit upon end of initialization