Exits thread successfully