Proper DatabaseContext close()