Unmap memory on close

We need to make sure to unmap all memory before we close the fd
to galcore.  This allows the kernel driver to call drv_release
and clean up after the process exits.