Finish onCreate() function