Completes the scope, preventing any further errors from being raised.
This is to prevent the scope from being leaked.