system: improve exit_on_bootup()
system: improve exit_on_bootup()

We should catch $fp == null for whatever reason it
happens.  Make sure the file exists and open for
read-only.  Close pointer afterwards to avoid other
wonkiness.

opnsense/core,opnsense/core,opnsense/core,opnsense/core,opnsense/core,opnsense/core