Fixed self-update to stop execution after update