Added exit function to Serve.php

Make sure that the application closes/stops after the hole shizzle has executed.