Deactivating the virtual environment