region.release() gives exceptions that are preventing the write operation to complete