Use defer keyword.