Improve automation. Programmitcally shutdown server.

Signed-off-by: Darshit Shah <darnir@gmail.com>