Gun-ban opponent abandons contempt motion in court challenge