Fixed indexing error.
Missing self scope.
Another missing scope.
.stop not .shutdown.