For maximum protection, smoke alarms are a good idea

If a fire were to start in the closet with the door closed, the smoke alarm in the closet would detect it faster.