Moved the operation for exit of devtools on servo closing outside the match loop.