My Nexus 4 has had problems shutting off or halting, requiring hard reboot, or just rebooting and getting stuck in a boot loop due to temporary hardware or software issue.
Upgraded to a Nexus 5 and used a SIM Card Eject Tool to remove the SIM.
The iFixit Sim Eject tool is slightly larger than other . . .