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