switched from out_context to in_context at the end of the bootstrap stage
Improved cleaning contexts upon interruption