Added PWMD_PINENTRY_CLOSE. This will terminate the pinentry process used