The invention concerns an injector device (100), comprising access means (110, 115) configured to selectively allow and prevent a cartridge (120) storing a pharmaceutical product (122) from being removed from the injector device (100), a self-test unit (130) configured to cause a self-test of at least one of an electronic component and an electronic assembly of the injector device (100), and a control unit (140) configured to control the access means (110, 115) to allow the cartridge (120) to be removed from the injector device (100) in case the self-test has failed.