Fix ping stopping after disconnect
Add pingUrl config variable