Made the inspector close when stopping the server.