changed osc callbacks handling, exit close the core