In what year did Gaddafi's second resignation occur