Ensures that we exit after successfully running.