Close after mapping to buffer.
Signed-off-by: Chris Sanders <zidane@outlook.com>