Design of a Cabinet Safe System for a portable particle accelerator