updates puma.sh to gracefully close puma