Renamed engine into renderer. Cleaned the way context is restored.