Checked server count before trying to close

Was throwing an error, probably should wrap it in a try/catch but better to suppress the action entirely