Updated nginx init script to properly stop nginx