Graceful Environment handling