shutdown is located in:
m3core/src/runtime/FreeBSD4/shutdown.c
m3core/src/runtime/FreeBSD3/shutdown.c