Added kill to the nginx script to ensure that it actually gets killed

Looks like this needs to be added to make it reliable