Close context in the end