GDK initialization and exit