Prevent region file from being returned while closing.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>