Allows statement to be closed before method returns.