Adicionado exception KeyboardInterrupt