Auto stop proxy

Is there a simple way to stop velocity after 10 minutes if there is no player using it?