Let's attempt a shutdown now by freeing memory we've allocated for the
heap and environment.