After thread and process close the MainThread still running