Prevent deleting parent environments.

This is a workaround until Platform itself prevents this.

This also tweaks the error messages for other environment commands.