Nucleophilic substitution of 2-chloropropanoyl chloride

Upon heating 2-chloropropanoyl chloride with concentrated ammonia in a sealed vessel, a primary amide is formed but the chlorine atom at the beta carbon does not get substituted with an amino group, that is, the alkyl chloride portion of the molecule fails to undergo nucleophilic substitution. 


Why is this so?


